package com.lb.dao.mongo.entity;

import com.lb.dao.mongo.MongoBaseField;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 系统banner数据库表
 */
@Data
@Document("banners")
public class Banners extends MongoBaseField {

    @Field("position")
    private Integer position;

    @Field("title")
    private String title;

    @Field("image_url")
    private String imageUrl;

    @Field("redirect_url")
    private String redirectUrl;

    @Field("available_after")
    private Long availableAfter;

    @Field("available_before")
    private Long availableBefore;

    @Field("weight")
    private Integer weight;

    @Field("status")
    private Integer status;

    @Field("visible_type")
    private Integer visibleType;

    @Field("icon_url")
    private String iconUrl;
}
